/* To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package it.nyquistmeteocal.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
/**
 *
 * @author gatb27
 */
@Entity
@Table(name="event")
public class Event implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE)
    private Integer id;
    @NotNull(message = "May not be empty")
    private String eventname;
    @NotNull(message = "May not be empty")
    private String place;
    @NotNull(message = "May not be empty")
    private String eventdate;
    @NotNull(message = "May not be empty")
    private String eventtype;
    @NotNull(message = "May not be empty")
    private String visibility;
    @NotNull(message = "May not be empty")
    private String weather;
    @NotNull(message = "May not be empty")
    private String creator;
    @NotNull(message = "May not be empty")
    private String city;
    @NotNull(message = "May not be empty")
    private Integer timestart;
    @NotNull(message = "May not be empty")
    private Integer timefinish;
    
        
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id){
        this.id = id;
    }
    

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getEventdate() {
        return eventdate;
    }

    public void setEventdate(String eventdate) {
        this.eventdate = eventdate;
    }


    public String getVisibility() {
        return visibility;
    }

    public void setVisibility(String visibility) {
        this.visibility = visibility;
    }
    
    public String getWeather() {
        return weather;
    }

    public void setWeather(String weather) {
        this.weather = weather;
    }
    
    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getEventname() {
        return eventname;
    }

    public void setEventname(String eventname) {
        this.eventname = eventname;
    }

    public String getEventtype() {
        return eventtype;
    }

    public void setEventtype(String eventtype) {
        this.eventtype = eventtype;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getTimestart() {
        return timestart;
    }

    public void setTimestart(Integer timestart) {
        this.timestart = timestart;
    }

    public Integer getTimefinish() {
        return timefinish;
    }

    public void setTimefinish(Integer timefinish) {
        this.timefinish = timefinish;
    }
    
    
    
}
